package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * tb_xt_user 系统用户表 
 **/
@SuppressWarnings("serial")
public class TbXtUser extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**用户名(user_name)*/
    private String userName;

    /**密码(password)*/
    private String password;

    /**真实姓名(real_name)*/
    private String realName;

    /**身份证号码(card_no)*/
    private String cardNo;

    /**手机号号码(phone)*/
    private String phone;

    /**所属机构，关联org_info(org_id)*/
    private Long orgId;

    /**用户角色(role_id)*/
    private String roleId;

    /**状态(01:正常 02：禁用)(SysUserStatus[01:正常,02:禁用])(status)*/
    private String status;

    /**邮箱(email)*/
    private String email;

    /**性别 0女 1男(sex)*/
    private String sex;

    /**系统备注(remark)*/
    private String remark;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public TbXtUser() {
    }

    public TbXtUser(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public TbXtUser setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public TbXtUser setUserName(String userName) {
        addOriginalData("user_name", this.userName, userName);
        this.userName = userName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public TbXtUser setPassword(String password) {
        addOriginalData("password", this.password, password);
        this.password = password;
        return this;
    }

    public String getRealName() {
        return realName;
    }

    public TbXtUser setRealName(String realName) {
        addOriginalData("real_name", this.realName, realName);
        this.realName = realName;
        return this;
    }

    public String getCardNo() {
        return cardNo;
    }

    public TbXtUser setCardNo(String cardNo) {
        addOriginalData("card_no", this.cardNo, cardNo);
        this.cardNo = cardNo;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public TbXtUser setPhone(String phone) {
        addOriginalData("phone", this.phone, phone);
        this.phone = phone;
        return this;
    }

    public Long getOrgId() {
        return orgId;
    }

    public TbXtUser setOrgId(Long orgId) {
        addOriginalData("org_id", this.orgId, orgId);
        this.orgId = orgId;
        return this;
    }

    public String getRoleId() {
        return roleId;
    }

    public TbXtUser setRoleId(String roleId) {
        addOriginalData("role_id", this.roleId, roleId);
        this.roleId = roleId;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public TbXtUser setStatus(String status) {
        addOriginalData("status", this.status, status);
        this.status = status;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public TbXtUser setEmail(String email) {
        addOriginalData("email", this.email, email);
        this.email = email;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public TbXtUser setSex(String sex) {
        addOriginalData("sex", this.sex, sex);
        this.sex = sex;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public TbXtUser setRemark(String remark) {
        addOriginalData("remark", this.remark, remark);
        this.remark = remark;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public TbXtUser setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public TbXtUser setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",userName:" + userName + ",password:" + password + ",realName:" + realName + ",cardNo:" + cardNo + ",phone:" + phone + ",orgId:" + orgId + ",roleId:" + roleId + ",status:" + status + ",email:" + email + ",sex:" + sex + ",remark:" + remark + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((TbXtUser) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
